package com.example.dubbonacosspringbootconsumer;

import org.apache.dubbo.config.annotation.DubboReference;
import org.example.ISayHello;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SayHelloController {

    @DubboReference
    ISayHello sayHello;

    @GetMapping("/sayHello")
    public String sayHello(){
        return sayHello.say();
    }
}
